<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditBankovyUcetTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_id}" for="id" />
                    <h:inputText id="id" value="#{bankovyUcetController.selected.id}" title="#{bundle.EditBankovyUcetTitle_id}" required="true" requiredMessage="#{bundle.EditBankovyUcetRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_nazov}" for="nazov" />
                    <h:inputText id="nazov" value="#{bankovyUcetController.selected.nazov}" title="#{bundle.EditBankovyUcetTitle_nazov}" required="true" requiredMessage="#{bundle.EditBankovyUcetRequiredMessage_nazov}"/>
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_predcislieUctu}" for="predcislieUctu" />
                    <h:inputText id="predcislieUctu" value="#{bankovyUcetController.selected.predcislieUctu}" title="#{bundle.EditBankovyUcetTitle_predcislieUctu}" />
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_cisloUctu}" for="cisloUctu" />
                    <h:inputText id="cisloUctu" value="#{bankovyUcetController.selected.cisloUctu}" title="#{bundle.EditBankovyUcetTitle_cisloUctu}" required="true" requiredMessage="#{bundle.EditBankovyUcetRequiredMessage_cisloUctu}"/>
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_kodBanky}" for="kodBanky" />
                    <h:inputText id="kodBanky" value="#{bankovyUcetController.selected.kodBanky}" title="#{bundle.EditBankovyUcetTitle_kodBanky}" required="true" requiredMessage="#{bundle.EditBankovyUcetRequiredMessage_kodBanky}"/>
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_ibanKod}" for="ibanKod" />
                    <h:inputText id="ibanKod" value="#{bankovyUcetController.selected.ibanKod}" title="#{bundle.EditBankovyUcetTitle_ibanKod}" />
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_swiftKod}" for="swiftKod" />
                    <h:inputText id="swiftKod" value="#{bankovyUcetController.selected.swiftKod}" title="#{bundle.EditBankovyUcetTitle_swiftKod}" />
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_nazovBanky}" for="nazovBanky" />
                    <h:inputText id="nazovBanky" value="#{bankovyUcetController.selected.nazovBanky}" title="#{bundle.EditBankovyUcetTitle_nazovBanky}" />
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_odberatel}" for="odberatel" />
                    <h:selectOneMenu id="odberatel" value="#{bankovyUcetController.selected.odberatel}" title="#{bundle.EditBankovyUcetTitle_odberatel}" required="true" requiredMessage="#{bundle.EditBankovyUcetRequiredMessage_odberatel}">
                        <f:selectItems value="#{odberatelController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditBankovyUcetLabel_dodavatel}" for="dodavatel" />
                    <h:selectOneMenu id="dodavatel" value="#{bankovyUcetController.selected.dodavatel}" title="#{bundle.EditBankovyUcetTitle_dodavatel}" required="true" requiredMessage="#{bundle.EditBankovyUcetRequiredMessage_dodavatel}">
                        <f:selectItems value="#{dodavatelController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{bankovyUcetController.update}" value="#{bundle.EditBankovyUcetSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditBankovyUcetViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{bankovyUcetController.prepareList}" value="#{bundle.EditBankovyUcetShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditBankovyUcetIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
